Lua/Client/Player
From JC2-MP Documentation
Contents
Static functions
Returns
Prototype
object
GetById(number)
table
Match(string)
Functions
Returns
Prototype
table
GetAimTarget()
Image
GetAvatar(AvatarSize)
Image
GetAvatar()
Color
GetColor()
number
GetEquippedSlot()
Weapon
GetEquippedWeapon()
number
GetHealth()
number
GetId()
table
GetInventory()
Vector3
GetLinearVelocity()
string
GetName()
PlayerState
GetState()
SteamId
GetSteamId()
object
GetValue(string)
World
GetWorld()
boolean
InVehicle()
boolean
IsValid()
SetValue(string, object)
Functions inherited from ClientStreamableObject
Returns
Prototype
Angle
GetAngle()
ClimateZone
GetClimateZone()
Vector3
GetPosition()
Functions inherited from Character
Returns
Prototype
AnimationState
GetBaseState()
Angle
GetBoneAngle(string)
Vector3
GetBonePosition(string)
table
GetBones(boolean)
table
GetBones()
AnimationState
GetLeftArmState()
number
GetModelId()
boolean
GetOutlineEnabled()
VehicleSeat
GetSeat()
AnimationState
GetUpperBodyState()
Vehicle
GetVehicle()
SetOutlineColor(Color)
SetOutlineEnabled(boolean)
Operators
Returns
Prototype
boolean
Player == Player
string
tostring(Player)